#!/usr/bin/env python3
# -*- coding: utf-8 -*-

"""实体"""

from django.db import models


class Blog(models.Model):
    """
    博客
    """
    ID = models.AutoField(primary_key=True)
    NUMBER = models.IntegerField()  # --编号
    TITLE = models.CharField(max_length=20)  # --标题
    SECOND_TITLE = models.CharField(max_length=200)  # --副标题
    URL = models.CharField(max_length=200)  # --地址
    CONTENT = models.CharField(max_length=200)  # --内容
    CREATE_TIME = models.DateTimeField(auto_now_add=True)  # --创建时间

    class Meta:
        db_table = 'Blog'
